<%--
  Created by IntelliJ IDEA.
  User: wang
  Date: 2022/12/3
  Time: 12:58
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>公告</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/bootstrap.min.css" />
    <script src="js/jquery-3.6.1.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
</head>
<body>
<%--导航栏--%>
<nav class="navbar navbar-default navbar-inverse">
    <div class="container-fluid">
        <div class="navbar-header">
            <button
                    type="button"
                    class="navbar-toggle collapsed"
                    data-toggle="collapse"
                    data-target="#bs-example-navbar-collapse-1"
                    aria-expanded="false"
            >
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">校园易物平台系统</a>
<%--            使用EL表达式,当管理员登陆后可以将他的名字显示在导航栏上--%>
            <a class="navbar-brand text-right">欢迎登陆${admin.name}
            </a>

        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">
                <li><a href="${pageContext.request.contextPath}/index.jsp">退出</a></li>
                <li class="active"><a href="${pageContext.request.contextPath}/ShowAllGoodsController">交易广场</a></li>
                <li><a href="${pageContext.request.contextPath}/ShowAllBadGoodsServlet">举报信箱</a></li>
                <li><a href="${pageContext.request.contextPath}/AdminReportController">发布公告</a></li>

<%--                额外的功能按钮,可以在将来升级或更新功能时使用--%>
                <li class="dropdown">
                    <a
                            href="#"
                            class="dropdown-toggle"
                            data-toggle="dropdown"
                            role="button"
                            aria-haspopup="true"
                            aria-expanded="false"
                    >Dropdown <span class="caret"></span
                    ></a>
                    <ul class="dropdown-menu">
                        <li><a href="#">Action</a></li>
                        <li><a href="#">Another action</a></li>
                        <li><a href="#">Something else here</a></li>
                        <li role="separator" class="divider"></li>
                        <li><a href="#">Separated link</a></li>
                        <li role="separator" class="divider"></li>
                        <li><a href="#">One more separated link</a></li>
                    </ul>
                </li>
            </ul>
            <form class="navbar-form navbar-left">
                <div class="form-group">
                    <input type="text" class="form-control" placeholder="Search" />
                </div>
                <button type="submit" class="btn btn-default">Submit</button>
            </form>
            <ul class="nav navbar-nav navbar-right">
                <li><a href="${pageContext.request.contextPath}/index.jsp">退出</a></li>
                <li class="dropdown">
                    <a
                            href="#"
                            class="dropdown-toggle"
                            data-toggle="dropdown"
                            role="button"
                            aria-haspopup="true"
                            aria-expanded="false"
                    >Dropdown <span class="caret"></span
                    ></a>
                    <ul class="dropdown-menu">
                        <li><a href="#">Action</a></li>
                        <li><a href="#">Another action</a></li>
                        <li><a href="#">Something else here</a></li>
                        <li role="separator" class="divider"></li>
                        <li><a href="#">Separated link</a></li>
                    </ul>
                </li>

            </ul>
        </div>
    </div>
</nav>
<div class="container">
    <textarea class="form-control form-group" rows="3" name="report"></textarea>
    <form
            action="${pageContext.request.contextPath}/AdminReportController"
            method="post"
            class="form-horizontal col-sm-offset-3 col-md-offset-3"
    >
        <h3 class="form-title">公告平台</h3>
        <div class="col-sm-9 col-md-9">
            <textarea class="form-control form-group" rows="3" name="report"></textarea>
        </div>

        <div class="form-group">
            <input
                    type="submit"
                    value="举报"
                    class="btn btn-success pull-right"
            />
        </div>
    </form>
</div>
</body>
</html>
